import React from 'react'
import {Outlet,NavLink} from "react-router-dom";
import { Tabbar,Search } from 'react-vant';
import { FriendsO, HomeO, SettingO } from '@react-vant/icons';
export default function Home() {
    return (
        <div>
            <header>
            <Search  placeholder="请输入搜索关键词" />
            </header>
            <main>
                <Outlet></Outlet>
            </main>
            <footer>
            <Tabbar>
      <Tabbar.Item icon={<HomeO />}>
          <NavLink to="/home/index">首页</NavLink>
      </Tabbar.Item>
      <Tabbar.Item icon={<SettingO />}>
      <NavLink to="/home/class">分类</NavLink>
      </Tabbar.Item>
      <Tabbar.Item icon={<FriendsO />}>
      <NavLink to="/home/shop">购物</NavLink>
      </Tabbar.Item>
      <Tabbar.Item icon={<SettingO />}>
      <NavLink to="/home/my">首页</NavLink>
      </Tabbar.Item>
    </Tabbar>
            </footer>
        </div>
    )
}
